package com.railway.dao.rowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.railway.bean.Train;

public class Train_idRowMapper implements RowMapper {

	@Override
	public Object mapRow(ResultSet res, int arg1) throws SQLException {
		Train train = new Train();
		train.setTrain_id(res.getInt("train_id"));
		return train;
	}

}
